<%@ page language="java" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Application</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function submit_me()
{
	var unit=document.getElementById("unit").value;
	var position=document.getElementById("position").value;
	var phone=document.getElementById("phone").value;
	var oc_evaluate=document.getElementById("oc_evaluate").value;
	if(unit=="")
	{
		window.alert("单位不能为空！");
		return false;
	}
	if(position=="")
	{
		window.alert("职务不能为空！");
		return false;
	}
	if(phone=="")
	{
		window.alert("电话不能为空！");
		return false;
	}
	if(oc_evaluate=="")
	{
		window.alert("申请理由不能为空！");
		return false;
	}
	var oc_evaluate = oc_evaluate.length;
    if(oc_evaluate > 100){
         alert("长度超过100个字符");
         return false;
    }	    
	document.getElementById("form1").action="<%=request.getContextPath()%>/admin_insert_if_evaluate.do?method=admin_insert_if_evaluate";
	document.getElementById("form1").submit();
	}
</script>
</head>
<body>
<%@ include file="top.jsp"%>
<div class="comparebox">
   <form id="form1" name="form1" method="post" action="">
  <div class="wzz"><a href="index.jsp">首页</a>&gt;<a href="#">申请查看评价指南</a></div>
  <div class="xzzbox">
    <div class="xztitle"><img src="images/sqck.jpg" alt="" /></div>
    <div class="new_xx">
     <div class="nei">
<table width="60%" border="0" align="center" cellpadding="1" cellspacing="5">
  <tr>
    <td align="right">单位</td>
    <td><input type="text" name="unit" id="unit" /></td>
  </tr>
    <tr>
    <td align="right">职务</td>
    <td><input type="text" name="position" id="position" /></td>
  </tr>
    <tr>
    <td align="right">电话</td>
    <td><input type="text" name="phone" id="phone" /></td>
  </tr>
  <tr>
    <td align="right">申请理由</td>
    <td><textarea name="oc_evaluate" cols="55" rows="5" class="txtcon" id="oc_evaluate" maxlength="10"></textarea></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><a onclick="submit_me();"><img src="images/sq.jpg" border="0" ></a></td>
  </tr>
</table>

     </div>
    
    
    </div>
    
    <div class="clear"></div>
  </div>
  </form>
</div>

<%@ include file="footer.jsp" %>
</body>
</html>
